home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Know Your Baseball - The Greatest Player Resource
/
Know Your Baseball - Greatest Player.iso
/
Baseball
/
Director
/
KTGCST.CST
/
00089_Script_loadAudioMedia
< prev
next >
Wrap
Text File
|
1998-09-21
|
3KB
|
65 lines
Global AnnSnd,CoachSnd,gbuttonstate
on loadAudioMedia x
puppetsound 0
set markerName = the name of member (the membernum of sprite x) &"_AUDIO"
if markerName = "SHOW_AUDIO" then exit
set start = the number of member markername
set AnnSnd = the name of member (start+1) of castlib "internal"
set CoachSnd = the name of member (start+2) of castlib "internal"
set the membernum of sprite 41 = the membernum of sprite 41+1
set the blend of sprite 41 = 100
setat(gbuttonState,41,2)
-- remove the next lines after all the sound is in
-- this line bails if no sound files are present
if AnnSnd = EMPTY or voidp(AnnSnd) then exit
puppetsound CoachSnd
updatestage
end
on loadAudioMediaTeam x
puppetsound 0
case the framelabel of
"1D","2A":
set markerName = the name of member (the membernum of sprite x) of castlib "teamplya.cst" &"_AUDIO"
set start = the number of member markername
set AnnSnd = the name of member (start+1) of castlib "teamplya.cst"
set CoachSnd = the name of member (start+2) of castlib "teamplya.cst"
"3D","4A":
set markerName = the name of member (the membernum of sprite x) &"_AUDIO"
set start = the number of member markername
set AnnSnd = the name of member (start+1) of castlib "internal"
set CoachSnd = the name of member (start+2) of castlib "internal"
"5D","6A":
set markerName = the name of member (the membernum of sprite x) of castlib "teamplyc.cst" &"_AUDIO"
set start = the number of member markername
set AnnSnd = the name of member (start+1) of castlib "teamplyc.cst"
set CoachSnd = the name of member (start+2) of castlib "teamplyc.cst"
end case
set the membernum of sprite 41 = the membernum of sprite 41+1
set the blend of sprite 41 = 100
setat(gbuttonState,41,2)
-- remove the next lines after all the sound is in
-- this line bails if no sound files are present
if AnnSnd = EMPTY or voidp(AnnSnd) then exit
puppetsound CoachSnd
updatestage
end
global gclipout,gstory
on loadAudioMediaBTG x
puppetsound 0
set markerName = the name of member (the membernum of sprite x) &"_AUDIO"
if markerName = "SHOW_AUDIO" then exit
set start = the number of member markername
set AnnSnd = the name of member (start+1) of castlib "internal"
set gstory = the name of member (start+2) of castlib "internal"
-- remove the next lines after all the sound is in
-- this line bails if no sound files are present
if AnnSnd = EMPTY or voidp(AnnSnd) then exit
puppetsprite 48,1
set the membernum of sprite 48 = the number of member gstory
set gClipOut = (the duration of member gstory)-30 -- sets the end point for the script videoplayer
updatestage
end